#include "PrecompiledHeaders.h"
#include "InputDevice.h"

InputDevice::InputDevice()
{
    ball = NULL;
    original_gravity = Ogre::Vector3::NEGATIVE_UNIT_Y * Constants::GRAVITY_STRENGTH;
    camera = NULL;
    invert = 1;
    speed = 1;
    sensitivity = 1;
}

/*
 * Invert the input
 */
void InputDevice::setInvert(bool i)
{
    invert = i ? -1 : 1;
}

/*
 * Alter the sensitivity of the input device
 */
void InputDevice::setSpeed(bool s)
{
    speed = s ? Constants::SPEED_FACTOR : 1;
}

/*
 * Alter the sensitivity of the input device
 */
void InputDevice::setSensitive(bool s)
{
    sensitivity = s ? Constants::SENSITIVITY_FACTOR : 1;
}

